<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>PHP For Loops</title>
</head>
<body>
<h1>PHP For Loops</h1>
<div>
    <h3>The PHP for Loop</h3>
    <?php
    for($x=1;$x<=10;$x++){
        echo("The number is: $x <br>");
    }
    ?>
</div>
<div>
    <h3>The PHP foreach Loop</h3>
    <?php
    $colors = array("red","green","blue","yellow");

    foreach ($colors as $value){
        echo("$value <br>");
    }
    ?>
</div>
</body>
</html>